package com.qiling.attachment.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 附件对象 t_base_attachment
 * 
 * @author ruoyi
 * @date 2021-09-18
 */
public class Attachment extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 文件ID */
    private Long fileId;

    /** 文件名 */
    @Excel(name = "文件名")
    private String fileName;

    /** 文件大小 */
    @Excel(name = "文件大小")
    private Long fileSize;

    /** 文件扩展名 */
    @Excel(name = "文件扩展名")
    private String fileExt;

    /** 文件链接 */
    @Excel(name = "文件链接")
    private String fileUrl;

    /** 目录ID */
    @Excel(name = "目录ID")
    private Long directoryId;

    /** 目录下索引 */
    @Excel(name = "目录下索引")
    private Long dirSortNum;

    /** 业务ID */
    @Excel(name = "业务ID")
    private String bizId;

    /** 业务类型 */
    @Excel(name = "业务类型")
    private String bizType;

    /** 业务引用状态 */
    @Excel(name = "业务引用状态")
    private String bizStatus;

    /** 业务下索引 */
    @Excel(name = "业务下索引")
    private Long bizSortNum;

    public void setFileId(Long fileId) 
    {
        this.fileId = fileId;
    }

    public Long getFileId() 
    {
        return fileId;
    }
    public void setFileName(String fileName) 
    {
        this.fileName = fileName;
    }

    public String getFileName() 
    {
        return fileName;
    }
    public void setFileSize(Long fileSize) 
    {
        this.fileSize = fileSize;
    }

    public Long getFileSize() 
    {
        return fileSize;
    }
    public void setFileExt(String fileExt) 
    {
        this.fileExt = fileExt;
    }

    public String getFileExt() 
    {
        return fileExt;
    }
    public void setFileUrl(String fileUrl) 
    {
        this.fileUrl = fileUrl;
    }

    public String getFileUrl() 
    {
        return fileUrl;
    }
    public void setDirectoryId(Long directoryId) 
    {
        this.directoryId = directoryId;
    }

    public Long getDirectoryId() 
    {
        return directoryId;
    }
    public void setDirSortNum(Long dirSortNum) 
    {
        this.dirSortNum = dirSortNum;
    }

    public Long getDirSortNum() 
    {
        return dirSortNum;
    }
    public void setBizId(String bizId) 
    {
        this.bizId = bizId;
    }

    public String getBizId() 
    {
        return bizId;
    }
    public void setBizType(String bizType) 
    {
        this.bizType = bizType;
    }

    public String getBizType() 
    {
        return bizType;
    }
    public void setBizStatus(String bizStatus) 
    {
        this.bizStatus = bizStatus;
    }

    public String getBizStatus() 
    {
        return bizStatus;
    }
    public void setBizSortNum(Long bizSortNum) 
    {
        this.bizSortNum = bizSortNum;
    }

    public Long getBizSortNum() 
    {
        return bizSortNum;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("fileId", getFileId())
            .append("fileName", getFileName())
            .append("fileSize", getFileSize())
            .append("fileExt", getFileExt())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("fileUrl", getFileUrl())
            .append("directoryId", getDirectoryId())
            .append("dirSortNum", getDirSortNum())
            .append("bizId", getBizId())
            .append("bizType", getBizType())
            .append("bizStatus", getBizStatus())
            .append("bizSortNum", getBizSortNum())
            .toString();
    }
}
